From de243b1e3e58b2b825e36550a4be3b0b5d8e7c11 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 16 Jan 2006 03:35:28 +0000 Subject: [PATCH] * Minor cosmetic fixes to installer * Make Block::delete() return something, to be used in later alterations to the un/blocking interfaces --- config/index.php | 55 +++++++++++++++++++--------------------------- includes/Block.php | 2 +- 2 files changed, 23 insertions(+), 34 deletions(-) diff --git a/config/index.php b/config/index.php index 449de55d85..af9a98e9ce 100644 --- a/config/index.php +++ b/config/index.php @@ -1,6 +1,7 @@ +# Copyright (C) 2004 Brion Vibber , 2006 Rob Church # http://www.mediawiki.org/ # # This program is free software; you can redistribute it and/or modify @@ -22,12 +23,27 @@ error_reporting( E_ALL ); header( "Content-type: text/html; charset=utf-8" ); @ini_set( "display_errors", true ); -?> +# Attempt to set up the include path, to fix problems with relative includes +$IP = dirname( dirname( __FILE__ ) ); +$sep = PATH_SEPARATOR; +if( !ini_set( "include_path", ".$sep$IP$sep$IP/includes$sep$IP/languages" ) ) { + set_include_path( ".$sep$IP$sep$IP/includes$sep$IP/languages" ); +} + +# Define an entry point and include some files +define( "MEDIAWIKI", true ); +define( "MEDIAWIKI_INSTALL", true ); +require_once( "includes/Defines.php" ); +require_once( "includes/DefaultSettings.php" ); +require_once( "includes/MagicWord.php" ); +require_once( "includes/Namespace.php" ); + +?> + - MediaWiki installation + MediaWiki <?php echo( $wgVersion ); ?> Installation